﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;

namespace Milestone.Model.Parties
{
	public sealed class Person : Party
	{
		[JsonConstructor]
		private Person()
		{

		}

		//protected override DenormalizedParty GetDenormalizedVersion()
		//{
		//	return new DenormalizedParty( this.Id, this.FirstName + " " + this.LastName );
		//}

		public String FirstName { get; private set; }

		public String LastName { get; private set; }

		public static Person CreateNew( string firstName, string lastName )
		{
			var person = new Person()
			{
				FirstName = firstName,
				LastName = lastName
			};

			return person;
		}
	}
}
